package com.qianfeng.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qianfeng.status.ResultCode;
import com.qianfeng.valigroup.Insert;
import com.qianfeng.valigroup.UpDate;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/*
 *@Description:
 *@author:刘哥
 *@Date:86180 2022/9/8 20:09
 */
public class SysDevice implements Serializable {
    @NotEmpty(groups = {Insert.class, UpDate.class}, message = "{\"code\": " + ResultCode.PARAM_CONTENT_EMPTY + ",\"msg\": \"没有传递设备ID\"}")
    private String deviceId;
    @NotEmpty(groups = {Insert.class}, message = "{\"code\": " + ResultCode.PARAM_CONTENT_EMPTY + ",\"msg\": \"没有传递设备名称\"}")
    private String deviceName;
    @NotNull(groups = {Insert.class}, message = "{\"code\": " + ResultCode.PARAM_CONTENT_EMPTY + ",\"msg\": \"没有传递分类ID\"}")
    private Long categyId;

    private Long bindUserId;

    private Long sceneId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date bindTime;
    private Long isOnline;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date connectTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date lostConnectTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date lastControlTime;
    private String currentConnectIp;
    private String connectLocation;
    private Long status;


    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }


    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }


    public Long getCategyId() {
        return categyId;
    }

    public void setCategyId(Long categyId) {
        this.categyId = categyId;
    }


    public Long getBindUserId() {
        return bindUserId;
    }

    public void setBindUserId(Long bindUserId) {
        this.bindUserId = bindUserId;
    }


    public Long getSceneId() {
        return sceneId;
    }

    public void setSceneId(Long sceneId) {
        this.sceneId = sceneId;
    }


    public java.util.Date getBindTime() {
        return bindTime;
    }

    public void setBindTime(java.util.Date bindTime) {
        this.bindTime = bindTime;
    }


    public Long getIsOnline() {
        return isOnline;
    }

    public void setIsOnline(Long isOnline) {
        this.isOnline = isOnline;
    }


    public java.util.Date getConnectTime() {
        return connectTime;
    }

    public void setConnectTime(java.util.Date connectTime) {
        this.connectTime = connectTime;
    }


    public java.util.Date getLostConnectTime() {
        return lostConnectTime;
    }

    public void setLostConnectTime(java.util.Date lostConnectTime) {
        this.lostConnectTime = lostConnectTime;
    }


    public java.util.Date getLastControlTime() {
        return lastControlTime;
    }

    public void setLastControlTime(java.util.Date lastControlTime) {
        this.lastControlTime = lastControlTime;
    }


    public String getCurrentConnectIp() {
        return currentConnectIp;
    }

    public void setCurrentConnectIp(String currentConnectIp) {
        this.currentConnectIp = currentConnectIp;
    }


    public String getConnectLocation() {
        return connectLocation;
    }

    public void setConnectLocation(String connectLocation) {
        this.connectLocation = connectLocation;
    }


    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

}
